package com.mz.entity.vo;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
public class PasswordVo {

    @NotNull(message = "密码不能为空")
    @Length( min=6, max=32, message = "用户名(6~32位长度)")
    private String password;
    @NotNull(message = "用户id不能为空")
    private Long userId;
}
